import becker.robots.*;
public class main {
	static MazeCity ICS = new MazeCity(10,10);
	static superRobot abubakr = new superRobot(ICS,0,0,Direction.NORTH);
	public static void main (String args[]){
		//Easy method: Keep a wall to your right and keep going.
		while (abubakr.getAvenue()!= 9 || abubakr.getStreet() != 9){
			abubakr.turnRight();
			if (abubakr.frontIsClear()){
				abubakr.move();
			} else {
				abubakr.turnLeft();
				if (abubakr.frontIsClear()){
					abubakr.move();
				} else {
					abubakr.turnLeft();
					if (abubakr.frontIsClear()){
						abubakr.move();
					} else {
						abubakr.turnLeft();
						if (abubakr.frontIsClear()){
							abubakr.move();
						} else {
							abubakr.turnLeft();
							if (abubakr.frontIsClear()){
								abubakr.move();
							}
						}
					}
				}
			}
		}
	}
}